package main

/*
#include<iostream>
using namespace std;
int test(int *arr,int arrlen,int *result)
{
    // int arrlen;
    // arrlen = sizeof(arr) / sizeof(arr[0]);
    std::cout<<arrlen<<"\n";
    int *temp;
    for (int i=0;i<arrlen;++i){
        result[i] = arr[i] + 10;
        std::cout<<"in for:"<<result[i]<<"\t"<<arr[i]<<"\n";
    }
    return arrlen;
}
*/
import "C"

func main() {
	length := 7
	var a = [length]int{1, 2, 3, 4, 5, 7}
	var result []int
	result = make(int, 10)
	end := C.test(a, length, result)
	fmt.Println(result, end)
}
